using System;
using System.Runtime.InteropServices;
namespace BMC.ARSystem
{
	[Guid("03c1dbff-df00-44e9-a897-899d287e2520")]
	public class EscalationInterval : EscalationTimeCriteria
	{
		private int _numSeconds;
		public int Value
		{
			get
			{
				return this._numSeconds;
			}
			set
			{
				this._numSeconds = value;
			}
		}
		public int Days
		{
			get
			{
				return this._numSeconds / 86400;
			}
			set
			{
				this._numSeconds = value * 24 * 60 * 60 + this._numSeconds % 86400;
			}
		}
		public int Hours
		{
			get
			{
				return this._numSeconds / 3600;
			}
			set
			{
				this._numSeconds = value * 60 * 60 + this._numSeconds % 3600;
			}
		}
		public int Minutes
		{
			get
			{
				return this._numSeconds / 60;
			}
			set
			{
				this._numSeconds = value * 60 + this._numSeconds % 60;
			}
		}
		public EscalationInterval(int numSeconds)
		{
			this._numSeconds = numSeconds;
		}
		internal static object ToVariant(object given, Server server)
		{
			EscalationInterval escalationInterval = given as EscalationInterval;
			if (escalationInterval == null)
			{
				return given;
			}
			return new object[]
			{
				1,
				escalationInterval.Value
			};
		}
	}
}
